public class Test1 {
    public static void main(String[] args) {
        int x = 0;
        int[] arr = {5, 7, 30, 26, 18, 9, 35, x};
        x = 14;
        for (int i = 0; i <= 9; i++) {
            if (i == x) {
                x = i;
            }
        }

        arr[arr.length - 1] = x;




    }
}
